﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.GroupMember.Presenter;

namespace MINERP.GroupMember
{
    public partial class FrmRebackSelect : Form
    {
        public FrmRebackSelect()
        {
            InitializeComponent();
        }

        private void BtnOk_Click(object sender, EventArgs e)
        {
            if (btnRebackToLeader.Checked)
            {
                DataTransfer.RebackType = 0;
            }
            if (btnRebackToAboveTech.Checked)
            {
                DataTransfer.RebackType = 1;
            }

            this.DialogResult = DialogResult.OK;
        }

        private void btnRebackToLeader_CheckedChanged(object sender, EventArgs e)
        {
            if (btnRebackToLeader.Checked)
            {
                btnRebackToAboveTech.Checked = false;
            }
        }

        private void btnRebackToAboveTech_CheckedChanged(object sender, EventArgs e)
        {
            if (btnRebackToAboveTech.Checked)
            {
                btnRebackToLeader.Checked = false;
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
